//
//  NetWorkingWithAPI.m
//  EKH
//
//  Created by calow on 2018/7/6.
//  Copyright © 2018年 calow. All rights reserved.
//

#import "NetWorkingWithAPI.h"
#import "NetWorking.h"

#define Success [success isEqualToString:@"101"]||[success isEqualToString:@"0"]||[success isEqualToString:@"success"]
#define Error   [networkingError isEqualToString:@"404"]
@implementation NetWorkingWithAPI

+(void)getLianjiaData:(NSString *)url block:(DATADICT)block;
{
    [NetWorking addNetWorkingGet:nil url:url block:^(NSMutableDictionary *dictionary, NSString *success, NSString *networkingError) {
        if (Success) {
            block(dictionary,success,networkingError);
        }else{
            block(nil,@"error",networkingError);
        }
    }];
}

@end
